package com.hqq.thread.thread_pool;

/**
 * PotatoPeelingTask
 * Created by heqianqian on 2017/7/1.
 */
public class PotatoPeelingTask extends Task {

    private static final int TIME_PER_POTATO = 550;


    public PotatoPeelingTask(int numPotatoes) {
        super(numPotatoes * TIME_PER_POTATO);
    }

    @Override
    public String toString() {
        return String.format("%s %s", this.getClass().getSimpleName(), super.toString());
    }
}
